package lab02.test35;

public class Test35 {
    public static void main(String[] args) {
        Manager manager = new Manager("张三");
        manager.basesalary = 1000;

        Worker worker = new Worker("李四");
        worker.days = 10;
        worker.daysalary = 100;

        Salesman salesman = new Salesman("王五");
        salesman.basesalary = 1000;
        salesman.salesvolume = 2000;
        salesman.royaltyrate = 0.7;

        System.out.println("姓名" + " \t " + "职位" + " \t   " + "工资");
        System.out.println(manager.getName() + " \t " + manager.getSdept() + " \t  " + manager.computeSalary());
        System.out.println(worker.getName() + " \t" + worker.getSdept() + "\t  " + worker.computeSalary());
        System.out.println(salesman.getName() + " \t" + salesman.getSdept() + " \t" + salesman.computeSalary());
    }

}
